<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/admin/commons/taglib.jsp"%>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>后台管理</title>
    <script type="text/javascript">
        $(function(){
            $("#teacherKeshi").addClass("active");
            $("#teacherKeshi").find("ul li").eq(0).addClass("active");
        })
    </script>
</head>
<body>
<div class="admin">
    <div class="panel admin-panel">
        <div class="panel-head"><strong>教师列表</strong></div>

        <table class="table table-hover">
            <tr><th width="100"></th><th width="120">教师</th><th width="200">教龄</th><th width="400">级别</th><th width="200">已授课</th><th width="200">简介</th><th width="200">操作</th></tr>

            <s:iterator value="pageBean.data">
                <tr>
                    <td></td>
                    <td><s:property value="name"/></td>
                    <td><s:property value="teachAge"/></td>
                    <td>优秀教师</td>
                    <td><s:property value="hasTeachNum"/>节</td>
                    <td><s:property value="teacherDesc"/></td>
                    <td><a class="button border-blue button-little" href="teacherKeshi!toDetail.action?teacher.id=<s:property value="id"/>" >查看课表</a>
                        </td>
                </tr>
            </s:iterator>
        </table>
    </div>
    <div>
        <s:include value="/admin/commons/page.jsp"></s:include>
    </div>
</div>

<script type="text/javascript">
    function submit(){
        var choose= document.getElementsByClassName("choose");
        if($('#selectall').is(':checked')) {
            choose[i].checked = true;
        }else{
            choose[i].checked = false;
        }
        document.getElementBy("form").submit();
    }
</script>
</body>
</html>
